<?php
/**
 * Base_App
 *
 * LICENSE
 *
 * This source file is subject to the new CC-GNU LGPL
 * It is available through the world-wide-web at this URL:
 * http://creativecommons.org/licenses/LGPL/2.1/
 *
 * @category   Base_App
 * @copyright  Copyright (c) 2009 Alexander fanatique* Thomas (me@alexander-thomas.net)
 * @license    http://creativecommons.org/licenses/LGPL/2.1/
 */
?>
<h1>Welcome to the Base App Demo</h1>
<p>Obviously everything works. - Well done, mate!</p>
<p>Below you see content which has been loaded via Ajax. This demonstrates that within Base_App all controllers 
	dynamically react on ajax calls and adjust their output.
</p>
<p>If you call <a href="<?=$this->baseUrl?>/index/load/1">this url</a> directly the whole template is rendered - if the call is done using Ajax only a HTML chunk is created.</p>

<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		$("#ajaxContent").load("<?=$this->baseUrl?>/index/load/1");
	});
</script>
<div id="ajaxContent">This should be replaced on load</div>